<div class="paginator">
  {if $pager->HaveToPaginate()}
    <div class="pages">
    <span>Page:</span>
    {if $pager->GetPage() != 1 && $showArrows}
      <a href="{$url}&page=1"><<&nbsp;</a>
      <a href="{$url}&page={$pager->GetPreviousPage()}"><&nbsp;</a>
    {/if}
    {foreach from=$pages item=page}
      <a href="{$url}&page={$page}" class="{if $page == $pager->GetPage()}active{/if}">{$page}</a>
    {/foreach}
    {if $pager->GetPage() != $pager->GetLastPage() && $showArrows}
      <a href="{$url}&page={$pager->GetNextPage()}">&nbsp;></a>
      <a href="{$url}&page={$pager->GetLastPage()}">&nbsp;>></a>
    {/if}
    </div>
  {/if}
  <div class="result_counter">Shown: {$pager->GetFirstRecNum()} - {$pager->GetLastRecNum()} of {$pager->GetNumResults()}</div>
</div>